package edu.zut.pojo;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//@ConfigurationProperties 根据配置的前缀 + 属性名 从容器中自动进行赋值
//@Component ：标明当前类是一个组件，他的使用权默认就交给Spring容器
@ConfigurationProperties(prefix = "img")
@Component
public class Img {

    private String ip;
    private String port;
    private String path;
    private Integer max;
    private Integer min;

    @Override
    public String toString() {
        return "Img{" +
                "ip='" + ip + '\'' +
                ", port='" + port + '\'' +
                ", path='" + path + '\'' +
                ", max=" + max +
                ", min=" + min +
                '}';
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getMax() {
        return max;
    }

    public void setMax(Integer max) {
        this.max = max;
    }

    public Integer getMin() {
        return min;
    }

    public void setMin(Integer min) {
        this.min = min;
    }
}
